<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class FormAPIFactory</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class FormAPIFactory</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Singleton class for creating FormAPI control object. This class responsible for initializing the FormAPI control object.</p>
<p class="description"><p>With its @see FormAPIFactory::create($xml, $target, $model, $id = 1)</p></p>
	<ul class="tags">
				<li><span class="field">property:</span> <a href="../formapi/FormAPIFactory.html">FormAPIFactory</a> $instance: instance of singelton object</li>
				<li><span class="field">author:</span> Zoltan Siki &lt;<a href="mailto:siki@agt.bme.hu">siki@agt.bme.hu</a>&gt; and Zoltan Koppanyi &lt;zoltan.koppanyi@gmail.com&gt;</li>
				<li><span class="field">version:</span> 0.1</li>
				<li><span class="field">see:</span> <a href="http://en.wikipedia.org/wiki/Singleton_pattern">http://en.wikipedia.org/wiki/Singleton_pattern</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_formapifactory.php.html">/formapifactory.php</a> (line <span class="field">17</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																				<div class="method-definition">
					static 						<span class="method-result"><a href="../formapi/FormAPIFactory.html">FormAPIFactory</a></span>
										<a href="#getInstance" title="details" class="method-name">getInstance</a>
										()
									</div>
								
												<div class="method-definition">
											<span class="method-result"><a href="../formapi/FormAPI.html">FormAPI</a></span>
										<a href="#create" title="details" class="method-name">create</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$xml</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$target</span>, <span class="var-type"><a href="../formapi/Model.html">Model</a></span>&nbsp;<span class="var-name">$model</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$id</span> = <span class="var-default">1</span>])
									</div>
																</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodgetInstance" id="getInstance"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method getInstance</span> (line <span class="line-number">34</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Create and getting the singelton instance</p>
	<ul class="tags">
				<li><span class="field">return:</span> instance of factory class</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result"><a href="../formapi/FormAPIFactory.html">FormAPIFactory</a></span>
		<span class="method-name">
			getInstance
		</span>
				()
			</div>
	
		
			
	</div>

<a name="methodcreate" id="create"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">create</span> (line <span class="line-number">53</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Create FormAPI instance from XML file</p>
	<ul class="tags">
				<li><span class="field">return:</span> instance of control object</li>
				<li><span class="field">todo:</span> Implements Model creation from XML file</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../formapi/FormAPI.html">FormAPI</a></span>
		<span class="method-name">
			create
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$xml</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$target</span>, <span class="var-type"><a href="../formapi/Model.html">Model</a></span>&nbsp;<span class="var-name">$model</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$id</span> = <span class="var-default">1</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$xml</span><span class="var-description">: XML filename and location</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$target</span><span class="var-description">: URL of target php file, that receive the request</span>			</li>
					<li>
				<span class="var-type"><a href="../formapi/Model.html">Model</a></span>
				<span class="var-name">$model</span><span class="var-description">: model object, that process the request</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$id</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Sat, 01 Dec 2012 15:38:02 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>